import request from "../utils/request.js"

export function login(data) {
	return request({
		url: "/Login/Login",
		method: 'post',
		data
	})
}

export function register(data) {
	return request({
		url: "/Login/register",
		method: 'post',
		data
	})
}
/**忘记密码
 * @param {Object} data
 */
export function forget(data) {
	return request({
		url: "/Login/forget",
		method: 'post',
		data
	})
}
//地区
export function areaLst() {
	return request({
		url: "/common/area"
	})
}
export function Liuyan(data) {
	return request({
		url: "/Index/Liuyan",
		method: 'post',
		data
	})
}

export function home() {
	return request({
		url: "/Index/home"
	})
}

export function emailSend(data) {
	return request({
		url: "/common/emailSend",
		method: 'post',
		data
	})
}

//检查收件中心
export function checkCenter(data) {
	return request({
		url: "/login/checkCenter",
		method: 'post',
		data
	})
}
//关于我们
export function agree(data) {
	return request({
		url: "/index/agree",
		data
	})
}

//通用信息
export function getBasicConf() {
	return request({
		url: "/common/getBasicConf"
	})
}

/**
 * 公告弹框
 */
export function noticeTan() {
	return request({
		url: "/user/noticeTan"
	})
}

export function noticeRead(data) {
	return request({
		url: "/user/noticeRead",
		method: "post",
		data
	})
}